package com.spring.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spring.springboot.sys.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 用户(User)表实体类
 *
 * @author 宋义州
 * @since 2022-07-23 01:41:45
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
@ApiModel(description = "User")
public class User extends BaseEntity implements Serializable {

    private static final long serialVersionUID = -91822668154723424L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    @TableField("user_name")
    @ApiModelProperty(value = "姓名")
    private String userName;

    @TableField("account")
    @ApiModelProperty(value = "账号")
    private String account;

    @TableField("phone")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @TableField("password")
    @ApiModelProperty(value = "密码")
    private String password;

    @TableField("id_card")
    @ApiModelProperty(value = "身份证号码")
    private String idCard;

    @TableField("nick_name")
    @ApiModelProperty(value = "昵称")
    private String nickName;

    @TableField("status")
    @ApiModelProperty(value = "启用状态(0：启用、1：禁用)")
    private Integer status;

}

